﻿Public Class frmSplash
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Increment(1)

        If ProgressBar1.Value = 10 Then
            lbnLoading.Text = "Loading Sistema..."
        End If

        If ProgressBar1.Value = 20 Then
            lbnLoading.Text = ""
        End If
        If ProgressBar1.Value = 30 Then
            lbnLoading.Text = "Loading Sistema..."
        End If
        If ProgressBar1.Value = 40 Then
            lbnLoading.Text = ""
        End If
        If ProgressBar1.Value = 50 Then
            lbnLoading.Text = "Loading Sistema..."
        End If
        If ProgressBar1.Value = 60 Then
            lbnLoading.Text = ""
        End If
        If ProgressBar1.Value = 70 Then
            lbnLoading.Text = "Loading Sistema..."
        End If
        If ProgressBar1.Value = 80 Then
            lbnLoading.Text = ""
        End If
        If ProgressBar1.Value = 90 Then
            lbnLoading.Text = "Loading Sistema..."
        End If
      
        If ProgressBar1.Value = ProgressBar1.Maximum Then
            principal.Show()
            Timer1.Stop()
            Me.Hide()
        End If
    End Sub

    Private Sub FrmSplash_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Start()
    End Sub

End Class